package cn.ronghuanet.client;

import cn.ronghuanet.domain.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "order-service",fallbackFactory = OrderClientFallbackFactory.class)
public interface OrderClient {
    @GetMapping("/order/user/{uid}")
    List<Order> getOrderByUid(@PathVariable("uid")Long uid);
}
